package com.shensi.appCollect.dao;

import com.shensi.appCollect.pojo.AppUserInfo;
import com.shensi.api.order.domian.station.PayOrder;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

@Mapper
public interface PayOrderHistoryMapper {

    /*
     * 根据手机号查询用户订单
     * @param appUserInfo
     * @return
     */
    List<PayOrder> getUserOrderListByMobilePhone(AppUserInfo appUserInfo);

    /**
     * 根据手机号或userId获取一个订单id，判断是否有已支付过的订单
     * @param appUserInfo
     * @return
     */
    Integer getOneUserPaidOrderId(AppUserInfo appUserInfo);

    PayOrder selectByOrdNo(String orderNo);

    int updateByPrimaryKeySelective(PayOrder record);

    PayOrder selectOrderInfoByOrdNo(String orderNo);
}